package com.wnx.job.modules.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wnx.job.modules.pms.model.PmsAdvantage;
import com.wnx.job.modules.pms.model.PmsCompanyAdvantageRelation;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-17
 */
public interface PmsAdvantageService extends IService<PmsAdvantage> {

    /**
     * 添加公司优势
     * @param advantageIds
     * @param username
     */
    void saveAdvantage(long[] advantageIds, String username);

    /***
     * 根据公司ID查公司优势集合
     * @param   companyId
     * @return
     */
    List<PmsCompanyAdvantageRelation> findCompanyAdvantageRelationsByCompanyId(Long  companyId);

    /**
     * 根据公司ID查询公司优势
     * @param companyId
     * @return
     */
    List<PmsAdvantage> findAdvantageListByCompanyId(Long companyId);
}
